var meaus = document.querySelectorAll("#headline>li");
var cons = document.querySelectorAll("#content>li");

meaus.forEach(function(a){
    
    a.onclick = function(){
        
        meaus.forEach(function(a2,index){

            if(this == a2){
                a2.className = "active";
                cons[index].className = "show";
                
            }else{
                a2.className = "foreign";
                cons[index].className = "";
            }
        },this);
    }
})  

